﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace CRM.UTIL
{
    public class FileHelper
    {
        public static string Read(string path)
        {
            var sr = new StreamReader(path, Encoding.Default);
            var text = sr.ReadToEnd();
            sr.Close();
            return text;
        }
        public static void Write(string path, string text)
        {
            var sr = new StreamWriter(path, false, Encoding.Default);
            sr.Write(text);
            sr.Close();
        }
    }
}
